#include "widget.h"
#include "ui_widget.h"
#include<QPushButton>

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QPushButton* button=new QPushButton(this);
    button->setText("button");
    button->move(350,300);

    connect(button,&QPushButton::clicked,this,[button](){
        qDebug()<<"lambda";
        button->move(350,275);
    });
}

Widget::~Widget()
{
    delete ui;
}
